<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018-05-14
 * Time: 上午 9:44
 */
namespace app\home\model;
use think\Model;
use think\Db;
class MessageModel extends Model
{
    public function getMessage(){
        $user = cmf_get_current_user();
        $shopid = $user['store_id'];
        $time = time()-3;
        $result = $this->where('m_time','>',$time)->where(['m_storeid'=>$shopid])->find();
        return $result;
    }
}